package com.sinoatma.physignsmonitor.http

import com.common.frame.bean.HttpResponse
import com.sinoatma.physignsmonitor.bean.BloodCollectListBean
import com.sinoatma.physignsmonitor.bean.InfoIdeValue
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.*

interface HttpApi {


    //检查网络
    @POST("/bdms/api/device/online")
    suspend  fun online(@Body body: RequestBody): HttpResponse<Any>

    //上传献血者基本信息
    @POST("/bdms/api/bloodCollect/upload/personInfo")
    suspend fun personalInfo(@Body body: RequestBody): HttpResponse<InfoIdeValue>

    //上传采血异常接口
    @POST("/bdms/api/bloodCollect/upload/exception")
    suspend fun exception(@Body body: RequestBody): HttpResponse<Any>

    //上传生命体征excel文件接口
    @Multipart
    @POST("/bdms/api/bloodCollect/upload/files")
    suspend fun uploadFile(@Part("id") id: RequestBody, @Part file: MultipartBody.Part): HttpResponse<Any>

    //获取采血信息接口
    @POST("/bdms/api/bloodCollect/list")
    suspend fun bloodCollectList(@Body body: RequestBody): HttpResponse<List<BloodCollectListBean>>
    
}